<?php
$itemsProvider = new CArrayDataProvider($model);
echo "view working";

$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>$id,
	'selectionChanged'=>'js:show_coords', 
	'dataProvider'=>$itemsProvider,
	//'filter'=>$model,
	'columns'=>array(
	array(
'header' => 'nmbr',
'value' => '$row+1',
),
		'id',
		//'name',
		//'category',
		//'much',
		'context',
		//'ordr',
		/*
		'comments',
		*/
		/* array(
			'class'=>'CButtonColumn',
		), */
	),
)); 
?>